WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
unused.h
Go to the documentation of this file.
1// WOLF - Copyright (C) 2020-2026
2// Institut de Robòtica i Informàtica Industrial, CSIC-UPC.
3// Authors: Joan Solà Ortega (jsola@iri.upc.edu) and
4// Joan Vallvé Navarro (jvallve@iri.upc.edu)
5// All rights reserved.
6//
7// This file is part of WOLF: http://www.iri.upc.edu/wolf
8// WOLF is free software: you can redistribute it and/or modify
9// it under the terms of the GNU General Public License version 3
10// as published by the Free Software Foundation.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program. If not, see <http://www.gnu.org/licenses/>.
19#pragma once
20
21// The WOLF_UNUSED is used to force the preprocessor to not optimize or complain about a variable defined following it.
22// This feature is used in the wolf factories.
23
24#ifdef __GNUC__
25#define WOLF_UNUSED __attribute__((used))
26#elif defined _MSC_VER
27#pragma warning(disable : Cxxxxx)
28#define WOLF_UNUSED
29#elif defined(__LCLINT__)
30#define WOLF_UNUSED /*@unused@*/
31#elif defined(__cplusplus)
32#define WOLF_UNUSED
33#else
34#define UNUSED(x) x
35#endif